package com.desay.pangoo.itmt.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 成员贡献度实体
 * @author uids1175
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "member_contribution")
@Data
public class MemberContributionEntity extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "contribution_id", columnDefinition = "bigint COMMENT '主键'")
    private Long id;

    /**
     * 成员名字
     */
    @Column(name = "nick_name", columnDefinition = "varchar(128) COMMENT '成员名字'")
    private String nickName;

    /**
     * 日期
     */
    @Column(name = "date", columnDefinition = "datetime COMMENT '日期'")
    private Date date;


    /**
     * 总贡献度
     */
    @Column(name = "total_contribution", columnDefinition = "decimal(14,6) default 0 COMMENT '总贡献度'")
    private BigDecimal totalContribution;

    /**
     * 技术规划评审贡献度
     */
    @Column(name = "tech_plan_review", columnDefinition = "decimal(14,6) default 0 COMMENT '技术规划评审贡献度'")
    private BigDecimal techPlanReview;

    /**
     * 技术定义与任务研究书评审贡献度
     */
    @Column(name = "tech_def_review", columnDefinition = "decimal(14,6) default 0 COMMENT '技术定义与任务研究书评审贡献度'")
    private BigDecimal techDefReview;

    /**
     * 技术成果交付评审贡献度
     */
    @Column(name = "tech_del_review", columnDefinition = "decimal(14,6) default 0 COMMENT '技术成果交付评审贡献度'")
    private BigDecimal techDelReview;


    /**
     * 相关度确认贡献度
     */
    @Column(name = "relevant_confirm", columnDefinition = "decimal(14,6) default 0 COMMENT '技术成果交付评审贡献度'")
    private BigDecimal relevantConfirm;

    /**
     * 参会贡献度
     */
    @Column(name = "attend_meeting", columnDefinition = "decimal(14,6) default 0 COMMENT '参会贡献度'")
    private BigDecimal attendMeeting;

    /**
     * 旁听贡献度
     */
    @Column(name = "audit", columnDefinition = "decimal(14,6) default 0 COMMENT '旁听贡献度'")
    private BigDecimal audit;

    /**
     * 评论贡献度
     */
    @Column(name = "comment", columnDefinition = "decimal(14,6) default 0 COMMENT '评论贡献度'")
    private BigDecimal comment;
}
